#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
class Solution {
public:
	bool threeConsecutiveOdds(vector<int>& arr) {
		if (arr.size() < 3) {
			return false;
		}
		for (int i = 1; i < arr.size() - 1; i++) {
			if ((arr[i]*arr[i + 1]*arr[i - 1])%2==1) {
				return true;
			}
		}
	}
};
int main() {
	Solution s;
	vector<int> a = { 2,6,4,1 };
	cout << s.threeConsecutiveOdds(a);

}